#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main()
{
	int n;
	int ch[100];
	scanf("%d", &n);
	int count = 0;
	for (int i = 0; i < n; i++)
	{
		scanf("%d", &ch[i]);
	}   
	printf("0 ");
	for (int k = 1; k < n; k++)
	{
		for (int j = 0; j<k; j++)
		{
			if (ch[j] < ch[k])
			{
				count++;
			}
		}
		printf("%d ", count);
		count = 0;
	}
	return 0;
}